<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@page import="com.tjsinfo.tjsoa.meetingroom.vo.MeetingRoomEmploy"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	List<MeetingRoomEmploy> roomList = (List<MeetingRoomEmploy>)request.getAttribute("roomList");
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<html:base />
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>天津市粮油集团有限公司</title>
		
		<link rel="stylesheet" type="text/css" href="<%=basePath%>ajaxFramework/ext-2.1/resources/css/ext-all.css" />
		<script type="text/javascript" src="<%=basePath%>ajaxFramework/ext-2.1/adapter/ext/ext-base.js"></script>
	  	<script type="text/javascript" src="<%=basePath %>ajaxFramework/ext-2.1/ext-all.js"></script>
		<script type="text/javascript" src="<%=basePath %>ajaxFramework/ext-2.1/source/locale/ext-lang-zh_CN.js"></script>
		<style>
#container {
	width: 600px;
	height: 300px;
	border: 3px solid #c3daf9;
}

.calendar {
	background-image: url(<%=basePath%>images/icon_64.gif) !important;
}

.blist {
	background-image: url(<%=basePath%>images/icon_64.gif) !important;
}

.bmenu {
	background-image: url(<%=basePath%>images/ju.gif) !important;
}

.menu-title {
	background: #ebeadb url(<%=basePath%>images/icon_64.gif) repeat-x;
	border-bottom: 1px solid #99bbe8;
	color: #15428b;
	font: bold 10px tahoma, arial, verdana, sans-serif;
	display: block;
	padding: 3px;
}

.lan01 {
	background: url(<%=basePath%>images/lanbg01.gif) no-repeat 0 0;
	width: 6px;
	height: 24px;
}

.lan02 {
	background: url(<%=basePath%>images/lanbg02.gif) repeat-x;
	width: 99%;
	height: 24px;
}

.lan03 {
	background: url(<%=basePath%>images/lanbg03.gif) no-repeat;
	width: 8px;
	height: 24px;
}

.cha {
	padding-top: 3px
}
</style>
		<link href="<%=basePath%>style/txlz7.css" rel="stylesheet"
			type="text/css" />
		<script type="text/javascript" src="<%=basePath%>js/ieverson.js"></script>
		<script type="text/javascript">
		window.onload = function(){var tb = new Ext.Toolbar(
				{
					height:25
				}
			);
		
		    tb.render('menu');
			tb.add(
		    {
		            text:'审批会议',
		            iconCls: 'daohang',
		        	handler: function(){
		        		location.href="<%=basePath%>tjsinfo/tjsoa/meetingroom/empolyRoomList.do";
					}
		    },
		    {
		            text:'审批记录',
		            iconCls: 'daohang',
		        	handler: function(){
		        		location.href="<%=basePath%>tjsinfo/tjsoa/meetingroom/empolyRoomJiluList.do";
					}
		    }
		    );
			tb.addFill();
		    tb.addText('<img id="windowResize" src="<%=basePath%>images/m_icon05.gif;"><a style="font-weight:bold; color:black;line-height: 22px;">会议审批</a>&nbsp;&nbsp;&nbsp;');
		}
	    </script>
	</head>
	<body>
		<div id="right" style="height:600px;">
		<div id="menu" style="padding-top:4px;"></div>
		<div style="height: 91%;">
				<table width="100%" border="0" cellspacing="0" cellpadding="0"
					height="100%">
					<tr>
						<td width="100%" valign="top" height="100%">
							<div class="contabwd">
								<table class="p_06" width="100%" border="0" cellspacing="0">
									<tr>
										<th width="50%" style="text-align: center">
											会议室
										</th>
										<th width="50%"style="text-align: center">
											操作
										</th>
									</tr>
									<%
										int a = 1;
										for (Iterator iterator = roomList.iterator(); iterator.hasNext();) {
											MeetingRoomEmploy employ = (MeetingRoomEmploy) iterator.next();
											if (a % 2 == 0) {
									%>
									<tr bgcolor="#F4F4F4">
										<td>
											<a href="<%=basePath%>tjsinfo/tjsoa/meetingroom/empolyList.do?roomId=<%=employ.getMeetingRoomMain().getId() %>">
												<%=employ.getMeetingRoomMain().getMeetingroomName() %>
											</a>
										</td>
										<td>
											<a href="<%=basePath%>tjsinfo/tjsoa/meetingroom/empolyList.do?roomId=<%=employ.getMeetingRoomMain().getId() %>">查看</a>
                                      	</td>
									</tr>
									<%
										} else {
									%>
									<tr>
										<td>
											<a href="<%=basePath%>tjsinfo/tjsoa/meetingroom/empolyList.do?roomId=<%=employ.getMeetingRoomMain().getId() %>">
												<%=employ.getMeetingRoomMain().getMeetingroomName() %>
											</a>
										<td>
											<a href="<%=basePath%>tjsinfo/tjsoa/meetingroom/empolyList.do?roomId=<%=employ.getMeetingRoomMain().getId() %>">查看</a>
                                      	</td>
									</tr>
									<%
										}
											a++;
										}
									%>
									<tr>
										<td>&nbsp;</td>
										<td>&nbsp;</td>
									</tr>
								</table>
								</div>
						</td>
					</tr>
				</table>
			</div>
			</div>
	</body>
</html>
